/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 查看商品 POST /sco/goodsShop/getData */
export async function scoGoodsShopGetDataUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBoScoGoodsShopGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RScoGoodsShopVo>('/sco/goodsShop/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 入库 POST /sco/goodsShop/inStock */
export async function scoGoodsShopInStockUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sco/goodsShop/inStock', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 出库 POST /sco/goodsShop/outStock */
export async function scoGoodsShopOutStockUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sco/goodsShop/outStock', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 移除商品 POST /sco/goodsShop/outStockAndRemove */
export async function scoGoodsShopOutStockAndRemoveUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBoScoGoodsShopOutStockAndRemove;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sco/goodsShop/outStockAndRemove', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /sco/goodsShop/pageData */
export async function scoGoodsShopPageDataUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBoScoGoodsShopPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoScoGoodsShopVo>('/sco/goodsShop/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改库存 POST /sco/goodsShop/updateStock */
export async function scoGoodsShopUpdateStockUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sco/goodsShop/updateStock', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改上架状态 POST /sco/goodsShop/updateUp */
export async function scoGoodsShopUpdateUpUsingPost({
  body,
  options,
}: {
  body: API.ScoGoodsShopBoScoGoodsShopUpdateUp;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sco/goodsShop/updateUp', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
